pp108 : GetObjectsByUser (Deprecated)

GetObjectsByUser (Deprecated)


This method is used to retrieve all the objects that are instantiated by a particular user. GetObjectsByUser is part of the CoBOC Methodset 4.2 in the Cordys CoBOC application package.

SOAP Request

<GetObjectsByUser xmlns="http://schemas.cordys.com/1.0/coboc">
    <cursor numRows="2"/>
    <user>cn=Jdoe,cn=organizational users,o=system,cn=cordys,o=vanenburg.com</user>
    <order_by>OWNER</order_by>
    <order>DESC</order>
</GetObjectsByUser>

Request Parameters

Parameter

Description

Data Type

Accepted Input Values

cursor

Number of rows to be returned by the query

String

The numRows attribute of this element determines the number of rows that would be returned by the query

user

DN of the owner or the user

String (DN)

Example:cn=Jdoe,cn=organizational users,o=system,cn=cordys,o=vanenburg.comThis is the criteria for retrieving the object.

order

Order (ascending or descending) in which you want the objects to be displayed

String

  • ASC - Ascending order
  • DESC - Descending order

order_by

Contains specific object metadata

Example: OWNER, ORGANIZATION, LASTUPDATED and so on, based on which the results must be ordered

SOAP Response

<GetObjectsByUserResponse xmlns="http://schemas.cordys.com/1.0/coboc">
    <cursor id="1.58" maxRows="99999997" numRows="2" position="2"/>
    <tuple>
        <old>
            <data>
                <metadata>
                    <object_id>11720266794461</object_id>
                    <folder_id>117117382112910</folder_id>
                    <objectname>Prod_obj1</objectname>
                    <key>/Vendor/Prod_obj1</key>
                    <organization>o=system,cn=cordys,o=vanenburg.com</organization>
                    <owner>cn=Jdoe,cn=organizational users,o=system,cn=cordys,o=vanenburg.com</owner>
                    <description/>
                    <customkey>33615803</customkey>
                    <history>0</history>
                    <event>0</event>
                    <template_id>11745312963608</template_id>
                    <lastmodifieddate>1173097363566</lastmodifieddate>
                </metadata>
                <object>
                    <Product xmlns="">
                        <Id>100</Id>
                        <Name>Stereo</Name>
                    </Product>
                </object>
            </data>
        </old>
    </tuple>
    <tuple>
        <old>
            <data>
                <metadata>
                    <object_id>11743262485815</object_id>
                    <folder_id>117117382112910</folder_id>
                    <objectname>Prod_Obj2</objectname>
                    <key>/Vendor/Prod_Obj2</key>
                    <organization>o=system,cn=cordys,o=vanenburg.com</organization>
                    <owner>cn=Jdoe,cn=organizational users,o=system,cn=cordys,o=vanenburg.com</owner>
                    <description/>
                    <customkey>33670675</customkey>
                    <history>0</history>
                    <event>0</event>
                    <template_id>11745312963608</template_id>
                    <lastmodifieddate>1173097345899</lastmodifieddate>
                </metadata>
                <object>
                    <Product xmlns="">
                        <Id>200</Id>
                        <Name>Cover</Name>
                    </Product>
                </object>
            </data>
        </old>
    </tuple>
</GetObjectsByUserResponse>

Response Parameters

Parameter

Description

old

Indicates that the object contained in the request exists in the database

object_id

Unique ID identifying the object

folder_id

Unique ID identifying the folder

objectname

Name of the object

key

Name of the object along with the full path.

organization

Organization in which the object has been inserted

owner

User who instantiated the object

description

Description of the object

customkey

Custom key of the object. Defined on an attribute of a template, the custom key prevents replication of the object and maintains object uniqueness.

history

Indicates whether the object is being monitored

event

Information about events defined on the object. Events help track changes in the state of the object.

template_id

Unique ID identifying the template

lastmodifieddate

Indicates the last date and time of modification of the object

object

Inserted object enclosed within this element